home *** CD-ROM | disk | FTP | other *** search
- /* %filename% -- window methods */
- /* Created %date% %time% by AppMaker */
-
- /* We recommend that you not modify this module and instead modify */
- /* its subclass, %WindName%. The 'z' prefix on this module marks% %*/
- /* a module which is likely to be regenerated by AppMaker after you */
- /* make changes to the user interface. The modules without the 'z' */
- /* prefix will not be regenerated by AppMaker unless you delete them. */
- /* Using a separate subclass to override the AppMaker-generated code */
- /* lets you regenerate code without losing your hand-coded changes. */
-
- #include <Commands.h>
- #include <Constants.h>
- #include <Global.h>
- #include <CDecorator.h>
- #include <CDesktop.h>
- #include <CError.h>
- #include <CRadioGroup.h>
- #include <CSizeBox.h>
- #include <TBUtilities.h>
- #include "z%WindName%.h"
-
- #define %WindName%ID% %%rsrcID% /* resource ID for WIND template */
-
- extern CDecorator *gDecorator; /* Window dressing object */
- extern CDesktop *gDesktop; /* The enclosure for all windows */
- extern CError *gError; /* The error handling object */
- extern CBureaucrat *gGopher; /* The current boss in the chain of command */
-
- /*----------*/
- void Z%WindName%::I%WindName% (CDirector *aSupervisor)
- {
- CView *enclosure;
- CBureaucrat *supervisor;
- CSizeBox *aSizeBox;
- CRadioGroup *aGroup;
-
- IWindow (%WindName%ID, FALSE, gDesktop, aSupervisor);
- itsMainPane = NULL;
- itsGopher = aSupervisor;
- enclosure = this;
- supervisor = this;
-
- %if has mainScroll%
- mainScroll = new (CScrollPane);
- mainScroll->IViewRes ('ScPn', %paneID%, enclosure, supervisor);
- mainScroll->FitToEnclFrame (TRUE, TRUE);
- enclosure = mainScroll;
- mainPanorama = NULL;
- %else%
- %if has growBox%
- aSizeBox = new (CSizeBox);
- aSizeBox->ISizeBox (enclosure, supervisor);
- %endif%
- %endif%
- %for each item gen create%
-
- %if has mainScroll%
- if (mainPanorama != NULL) {
- mainScroll->InstallPanorama (mainPanorama);
- }
- %endif%
- } /* I%WindName% */
-
- %for each item gen zMake%
- /*----------*/
- void Z%WindName%::Activate (void)
- {
- inherited::Activate ();
- gGopher = itsGopher;
-
- } /* Activate */
-
- /*----------*/
- void Z%WindName%::DoCommand (long theCommand)
- {
- switch (theCommand) {
- default:
- inherited::DoCommand (theCommand);
- break;
- } /* switch */
-
- } /* DoCommand */
-
- /* %filename% */
-